<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
					<tr>
						<td width="20%" align="center">
							<strong>用户</strong>
						</td>
						<td>
							<?php if (!empty($this->order->uid)):?>
								<?php 
									$user = $this->member->getUserDetails(array('uid'=>$this->order->uid));
									echo $user[0]['username'] . ' email:' . $user[0]['email'];
								?>
							<?php else:?>
								none
							<?php endif;?>
						</td>	
					</tr>	
					<tr>
						<td width="20%" align="center">
							<strong>ip</strong>
						</td>
						<td>
							<?php echo $this->order->ip;?>
						</td>	
					</tr>	
					<tr>
						<td width="20%" align="center">
							<strong>时间</strong>
						</td>
						<td>
							<?php echo $this->order->addtime;?>
						</td>	
					</tr>	
					<tr bgcolor="#FFFFFF">
						<td align="center" valign="middle">
							订单详情
						</td>
						<td align="left">
							<?foreach($this->itemArray as $value):?>

							<div class="orderItemsDiv">
				
								<div class="orderItemsLeft"><a target="_blank" href="<?php echo $this->url($value['itemid']);?>"><img src="<?=$value['cut_url']?>" /></a></div>
				
								<div class="orderItemsRight">
				
									<div>Products name: <?=$value['subject']?></div>
				
									<div>Unit price　: $<?=$this->numberFormat($value['net_price'],2)?></div>
				
									<div>Quantity: <?=$value['amounts']?></div>
				
									<div>Total amount: $
									<?php 
										$totalPrice = 0;
						           		if ($value['buy_name_num'] == '' and $value['buy_originalname_num'] == '')
						                {
						
						                    $totalPrice+=$value['amounts'] * $value['net_price'];
						                } else
						                {
						                    $totalPrice+=$value['amounts'] * $value['net_price'] + $value['originalprintAmounts'] * PRINT_ORIGINAL_PRICE + $value['printAmounts'] * PRINT_CUSTOM_PRICE;
						                }
						
						                if ($value['buy_BadgePatch'] == 'Yes')
						                {
						                    $totalPrice+=$value['badge_patch_money'];
						                }
						                echo $totalPrice;
									?>
									
									</div>
				
									<div>Specifications：<?=$value['pattern_name']?></div>
				
									<div>Size：<?=$value['buy_pattern_size']?></div>
				
				                                        <!-- <div>badge patch：<?=$value['buy_BadgePatch']?> <?=$value['select_badgepatch']?></div>
				                                        <div>Badge Patch for size:<?=$value['badgepatchforsize']?></div>
				
				                                        <div><strong>Not Original number and name:</strong></div> 
				
									<div>Print number or not：<?=$value['buy_name_num']?></div>
				
									<div>The quantity to print：<?=$value['printAmounts']?></div>-->
				
									<div>Memo：<?=$value['printMesg']?></div>
				
				                                        <div>&nbsp;&nbsp;</div>
				
				                                        <!-- <div><strong>Original number and name:</strong></div>
				
									<div>Print number or not：<?=$value['buy_originalname_num']?></div>
				
									<div>The quantity to print：<?=$value['originalprintAmounts']?></div>
				
									<div>Memo：<?=$value['originalprintMesg']?></div>
				
									<div> -->
									</div>
				
								</div>
				
								<div class="clear"></div>
				
							</div>
				
						<?endforeach;?>
						</td>
					</tr>											
				</table>